<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'Showallproject.jsp' starting page</title>
<link href="/bestcleaner/js/tablecloth/tablecloth.css" rel="stylesheet"
	type="text/css" media="screen" />
<script type="text/javascript"
	src="/bestcleaner/js/tablecloth/tablecloth.js"></script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<style>
body {
	margin: 0;
	padding: 0;
	background: #f1f1f1;
	font: 70% Arial, Helvetica, sans-serif;
	color: #555;
	line-height: 150%;
	text-align: left;
}

a {
	text-decoration: none;
	color: #057fac;
}

a:hover {
	text-decoration: none;
	color: #999;
}

h1 {
	font-size: 140%;
	margin: 0 20px;
	line-height: 80px;
}

h2 {
	font-size: 120%;
}

#container {
	margin: 0 auto;
	width: 1000px;
	background: #fff;
	padding-bottom: 20px;
}

#content {
	margin: 0 20px;
}

p.sig {
	margin: 0 auto;
	width: 680px;
	padding: 1em 0;
}

form {
	margin: 1em 0;
	padding: .2em 20px;
	background: #eee;
}
</style>

</head>

<body>
	<div id="container">
		<h1>
			<a href="project/Addproject.jsp"><font size="4"
				style="font-family:'微软雅黑'">添加烟气脱硫项目</font></a>
		</h1>



		<form action="showallproject" method="post">
			<div id="content">
				<table cellspacing="0" cellpadding="0">
					<tr>
						<th width="10%">编号</th>
						<th width="40%">标题</th>
						<th width="20%">操作</th>
					</tr>
					<s:iterator value="projectlist" id="project">
						<tr>
							<td><s:property value="#project.id" /></td>
							<td><a
								href="<s:url action="showoneproject">
    			<s:param name="project.id" value="#project.id"></s:param></s:url>"><s:property
										value="#project.item" escape="false"/></a></td>
							<td><a
								href="<s:url action="showoneproject">
    			<s:param name="project.id" value="#project.id"></s:param></s:url>">
									查看</a> <a
								href="<s:url action="deleteproject">
    		<s:param name="project.id" value="#project.id">
    		</s:param>
    		</s:url>"
								onclick="return confirm('确定删除？')?true:false;"> 删除</a></td>
						</tr>
					</s:iterator>
					<tr>
						<td colspan="6" align="center">共<s:property
								value="session.projecttotalpage" />页&nbsp;&nbsp;&nbsp;第<s:property
								value="pagenow+1" />页&nbsp;&nbsp;&nbsp;<s:if test="pagenow>0">
								<a
									href="<s:url action="showallproject"><s:param name="pagenow"  value="pagenow-1"/></s:url>">上一页</a>&nbsp;&nbsp;&nbsp;</s:if>
							<s:if test="pagenow+1 !=#session.projecttotalpage">
								<a
									href="<s:url action="showallproject"><s:param name="pagenow" value="pagenow+1"/></s:url>">下一页</a>
							</s:if></td>
					</tr>
				</table>
			</div>
		</form>
	</div>

</body>
</html>
